﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicExpressionCalculator
{
    public class LogicOperand: AbstractExpressionObject
    {
        #region Properties
        public virtual string Identify { get { return _id; } }
        public virtual bool Value { get { return _value; } set { _value = value; } }
        #endregion

        #region Fields
        protected string _id;
        protected bool _value;
        #endregion

        /// <summary>
        /// 
        /// </summary>
        /// <param name="operandId"></param>
        internal LogicOperand(string operandId)
        {
            _id = operandId;
        }

        public override string ToString()
        {
            return _id;
        }
    }
}
